.message-center-page {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 20px;
}

/* 全部标记为已读按钮 */
.mark-all-read {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e6f7ff;
  padding: 10px;
  margin: 10px;
  border-radius: 8px;
  gap: 5px;
}

.mark-all-read-text {
  font-size: 14px;
  color: #1890ff;
}

/* 标签栏样式 */
.tab-bar {
  display: flex;
  background-color: #fff;
  margin: 0 10px 10px 10px;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  border-radius: 6px;
  position: relative;
}

.tab.active {
  background-color: #1890ff;
}

.tab-text {
  font-size: 15px;
  color: #666;
}

.tab.active .tab-text {
  color: #fff;
  font-weight: 500;
}

/* 消息数量角标 */
.badge {
  position: absolute;
  top: 8px;
  right: 20%;
  background-color: #ff4d4f;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

.badge-text {
  font-size: 11px;
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #999;
}

/* 滚动容器样式 */
.message-scroll {
  flex: 1;
  margin: 0 10px;
}

/* 消息项样式 */
.message-item {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  margin-bottom: 10px;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.message-item.unread {
  background-color: #f0f9ff;
  border-left: 3px solid #1890ff;
}

.message-left {
  position: relative;
  margin-right: 12px;
}

.message-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #ff4d4f;
  border-radius: 50%;
  border: 2px solid #fff;
}

.message-content {
  flex: 1;
  padding-right: 10px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.message-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  flex: 1;
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.message-time {
  font-size: 13px;
  color: #999;
  flex: 0 0 80px;
  text-align: right;
}

.message-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
}

.message-sender {
  margin-top: 5px;
}

.sender-text {
  font-size: 13px;
  color: #999;
}

.message-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* 空状态样式 */
.empty-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: #999;
}

.empty-text {
  margin-top: 15px;
  font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .message-item {
    padding: 12px;
  }
  
  .message-icon {
    width: 40px;
    height: 40px;
  }
  
  .message-title {
    font-size: 15px;
  }
  
  .message-text {
    font-size: 13px;
  }
}

@media (min-width: 414px) {
  .message-item {
    padding: 18px;
  }
  
  .message-icon {
    width: 52px;
    height: 52px;
  }
  
  .badge {
    right: 25%;
  }
}